package com.zhisuo.apicenter.service;


import com.zhisuo.apicenter.model.ParkArea;
import com.zhisuo.apicenter.model.ParkAreaBuild;
import com.zhisuo.apicenter.model.ZhiSuoUser;
import com.zhisuo.apicenter.model.ZhiSuoUserIntegralRecord;

import java.util.List;

public interface ApiService {


    ZhiSuoUser getUserIdByOpenId(String openid);

    String insertNewUserByOpenId(String openid);

    String getMobileSecret(String mobile);

    void insertMobileSecret(String mobile, String secret);

    void updateMObileSecret(String mobile, String secret, String id);

    List<ParkArea> getListParkArea();

    List<ParkAreaBuild> getListParkAreaBuildByParkAreaId(String parkareaid);

    String getUserSecretIdByMobileAndSecret(String mobile, String secret);

    void updateMobileByUserId(String mobile, String userid, int role, String salesmanid);

    String getUserAddressIdByUserIdAndPrkareabuildid(String userid, String parkareabuildid);

    void insertNewUserAddrss(String userid, String parkareabuildid,String flag);

    String getSalesManIdByMobile(String mobile);

    Integer getUserRoleByUserId(String userid);

    ZhiSuoUser getUserInfoByUserId(String userid);

    Integer getUserIdByMobile(String receiptusermobile);

    ZhiSuoUser getUserRoleByMobile(String mobile);

    void updateUserInfoById(String userid, String avatarurl, String nickname, String city, String province, String country, String gender, String birthday);

    void updateUserAddressIdByUserIdAndPrkareabuildid(String addressid, String parkareabuildid, String flag);

    void deleteUserAddressById(String addressid);

    String getSellerManIdByMobile(String mobile);

    void updateUserAddressFlag(String userid);

    void updateUserAddressFlagStatus(String useraddressid, String flag);

    Integer getAwardIntegeralByConfig(String award_integral);

    String getZhiSuoUserSignRecordByUserDate(String userid, String daydate);

    List<String> getListZhiSuoUserSignRecordByMonth(String userid);

    List<ZhiSuoUserIntegralRecord> getListZhiSuoUserIntegralRecordByUserId(String userid, Integer page, Integer pagesize);

    List<String> getListPhoneByPhoneNumber(String phonenumber);

    String getTcpUrlByTcpCenterUrl(String tcp_center_url);

    List<String> getListSysIndexImgByStatus();
}
